package com.example.demo.controller;

import com.example.demo.entity.Vehicle;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/getVehicle")
public class IgnoreJsonController {



    @GetMapping
    public Vehicle getVehicleById(String id){
        Vehicle vehicle = new Vehicle();
        vehicle.setCarColor("1");
        vehicle.setCarType("2");
        vehicle.setPhoto("3");
        vehicle.setVehicleCode("4");
        return vehicle;
    }
}
